package registnet.base;

import java.util.HashMap;

public abstract class AbstractForm5 implements IForm5{

	protected String studentNumber;
	protected int year;
	protected int semester;
	protected HashMap<String, CourseTaken> courses = new HashMap<String, CourseTaken>();
	
	public void setStudentNumber(String studentNumber){
		this.studentNumber = studentNumber;
	}
	
	public String getStudentNumber(){
		return this.studentNumber;
	}
	
	public void setYear(int year){
		this.year = year;
	}
	
	public int getYear(){
		return this.year;
	}
	
	public void setSemester(int semester){
		this.semester = semester;
	}
	
	public int getSemester(){
		return this.semester;
	}
	
	public void addCourse(CourseTaken course){
		this.courses.put(course.getCourseCode(), course);
	}
	
	public HashMap<String, CourseTaken> getAllCourses(){
		return this.courses;
	}
	
	
}
